package com.xmtlxx.wms.domain.bo;

import com.xmtlxx.common.core.domain.BaseEntity;
import com.xmtlxx.common.core.validate.AddGroup;
import com.xmtlxx.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 库存记录业务对象 t_inventory_log
 *
 * @author xmtlxx
 * @date 2022-08-15
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("库存记录业务对象")
public class InventoryLogBo extends BaseEntity {

    /**
     * 记录id
     */
    @ApiModelProperty(value = "记录id")
    private String id;

    /**
     * 库存id
     */
    @ApiModelProperty(value = "库存id", required = true)
    @NotBlank(message = "库存id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String stockId;

    /**
     * 仓库id
     */
    @ApiModelProperty(value = "仓库id", required = true)
    @NotNull(message = "仓库id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String storeId;

    /**
     * 变动前数量
     */
    @ApiModelProperty(value = "变动前数量", required = true)
    @NotNull(message = "变动前数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long befores;

    /**
     * 变动数量
     */
    @ApiModelProperty(value = "变动数量", required = true)
    @NotNull(message = "变动数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long nums;

    /**
     * 变动后数量
     */
    @ApiModelProperty(value = "变动后数量", required = true)
    @NotNull(message = "变动后数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long afters;

    /**
     * 类型
     */
    @ApiModelProperty(value = "类型", required = true)
    @NotBlank(message = "类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 事件ID
     */
    @ApiModelProperty(value = "事件ID")
    private String referId;

    /**
     * 经办人
     */
    @ApiModelProperty(value = "经办人", required = true)
    @NotBlank(message = "经办人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String operator;

    /**
     * 原因
     */
    @ApiModelProperty(value = "原因")
    private String memo;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态")
    private String status;

    /**
     * 部门id
     */
    @ApiModelProperty(value = "部门id")
    private Long deptId;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;

    /**
     * 删除标识
     */
    @ApiModelProperty(value = "删除标识")
    private String delFlag;


}
